<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
<ul th:fragment="menuTab(activePageCode)" class="nav nav-tabs" role="tablist" id="history-menu-tab" th:with="activeMenu=${#fn.getMenuByCode(activePageCode)}">
    <li  role="presentation" th:class="${activeMenu.link=='/'}?'active':''" th:data-menu-link="${'/'}"><a href="#" th:href="@{'/'}"  role="tab" style="cursor: default;" >首页&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
    <li th:each="menu:${#fn.getHistoryMenus(activePageCode)}" role="presentation" th:class="${menu.id==activeMenu.id}?'active':''" th:data-menu-id="${menu.id}"  th:data-menu-link="${menu.link}">
        <a href="#" th:href="${menu.link}" role="tab" style="cursor: default;"><span th:text="${menu.name}" >菜单</span>&nbsp;&nbsp;&nbsp;&nbsp;</a><i class="glyphicon glyphicon-remove" ></i>
    </li>
    <li role="presentation" class="remove-all" data-label="确认关闭所有？"><a href="javascript:void(0);" role="tab" >关闭所有</a></li>
</ul>
</body>
</html>